<?php

namespace app\model;

use think\Model;

class UserUpgradeLogModel extends Model
{
	protected $name               = 'user_upgrade_log';
	protected $autoWriteTimestamp = true;
	protected $insert             = [];
	protected $update             = [];


	const TYPE_UPGRADE   = 1; // 类型：升级
	const TYPE_DOWNGRADE = 2; // 类型：降级


	const SOURCE_TYPE_INVITE_UPGRADE                  = 1; // 数据来源类型：邀请用户升级
	const SOURCE_TYPE_CRATE_ORDER_UPGRADE             = 2; // 数据来源类型：下单升级
	const SOURCE_TYPE_EXPIRE_DOWNGRADE                = 3; // 数据来源类型：v3等级失效降级
	const SOURCE_TYPE_INVITE_AND_CREATE_ORDER_UPGRADE = 4; // 数据来源类型：邀请用户 && 下单升级
}